package org.ragdollcat.secondaiagent.tool;


import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

/**
 * 定义人机交互工具类
 */
public class AskHumanTool {

    @Tool(description = "ask_human")
    public String askHuman(@ToolParam(description = "The question you want to ask human.") String inquire) {

        // 使用Scanner获取用户输入
        Scanner scanner = new Scanner(System.in);
        System.out.printf("Bot: %s%n%nYou: ", inquire);
        String userInput = scanner.nextLine();

        return userInput.trim();


    }
}
